package com.lmb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lmb.bean.Dish;
import com.lmb.dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @projectName: reggie
 * @package: com.lmb.service
 * @className: DishService
 * @author: Eric
 * @description: TODO
 * @date: 2022/9/18 16:46
 */
public interface DishService extends IService<Dish> {

    @Transactional
    boolean addDishAndDishFlavor(DishDto dishDto, HttpSession session);

    @Transactional
    void upStatuss(Long[] ids, Integer status,HttpSession session);

    @Transactional
    void deleteDishs(Long[] ids);

    @Transactional
    DishDto DishById(Long id);

    @Transactional
    void upDish(DishDto dishDto,HttpSession session);

    @Transactional
    List<DishDto> dishAndDishFlavorList(Long categoryId);
}
